//
//  myOrderCell.m
//  nmrsc
//
//  Created by xumckay on 16/1/12.
//  Copyright © 2016年 bric. All rights reserved.
//

#import "myOrderCell.h"
@implementation myOrderCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        int btnWidth=kDeviceWidth/4;
        
        UIView *lineView=[[UIView alloc]initWithFrame:CGRectMake(0,0,kDeviceWidth,15)];
        lineView.backgroundColor=COLOR(245, 245, 245, 1);
        [self.contentView addSubview:lineView];
        
        _titleBtn=[[titleButton alloc]initWithFrame:CGRectMake(15,(111-15)/4+5,150,18)];
        [_titleBtn setTitleColor:COLOR(120, 120, 120, 1) forState:UIControlStateNormal];
        _titleBtn.titleLabel.font=[UIFont systemFontOfSize:15];
        [self.contentView addSubview:_titleBtn];
        
        _showAllOrderListBtn=[[managerAddressBtn alloc]initWithFrame:CGRectMake(kDeviceWidth-150-15,30,150,30)];
        [_showAllOrderListBtn setTitle:@"查看全部订单" forState:UIControlStateNormal];
        [_showAllOrderListBtn setTitleColor:COLOR(215, 215, 215,1) forState:UIControlStateNormal];
        [_showAllOrderListBtn setImage:[UIImage imageNamed:@"right-2"] forState:UIControlStateNormal];
        _showAllOrderListBtn.titleLabel.font=[UIFont systemFontOfSize:15];
        _showAllOrderListBtn.titleLabel.textAlignment=NSTextAlignmentRight;
        [self.contentView addSubview:_showAllOrderListBtn];
        
        _sep=[[UIView alloc]initWithFrame:CGRectMake(7,(111-15)/2+15,kDeviceWidth-14,1)];
        _sep.backgroundColor=COLOR(200, 200, 200, 1);
        [self.contentView addSubview:_sep];
        
        _waitForPayBtn=[[firstviewBtn alloc]initWithFrame:CGRectMake(0,(111-15)/2+16 ,btnWidth,(111-15)/2)];
        [_waitForPayBtn setTitle:@"待付款" forState:UIControlStateNormal];
        _waitForPayBtn.titleLabel.font=[UIFont systemFontOfSize:12];
        _waitForPayBtn.titleLabel.textAlignment=NSTextAlignmentCenter;
        [_waitForPayBtn setTitleColor:COLOR(120, 120, 120, 1) forState:UIControlStateNormal];
        [_waitForPayBtn setImage:[UIImage imageNamed:@"waitforpay"] forState:UIControlStateNormal];
        
        _waitForGetBtn=[[firstviewBtn alloc]initWithFrame:CGRectMake(btnWidth,(111-15)/2+16 ,btnWidth,(111-15)/2)];
        [_waitForGetBtn setTitle:@"待收货" forState:UIControlStateNormal];
        _waitForGetBtn.titleLabel.font=[UIFont systemFontOfSize:12];
        _waitForGetBtn.titleLabel.textAlignment=NSTextAlignmentCenter;
        [_waitForGetBtn setTitleColor:COLOR(120, 120, 120, 1) forState:UIControlStateNormal];
        [_waitForGetBtn setImage:[UIImage imageNamed:@"waitforget"] forState:UIControlStateNormal];
        
        _waitForTalkBtn=[[firstviewBtn alloc]initWithFrame:CGRectMake(btnWidth*2,(111-15)/2+16 ,btnWidth,(111-15)/2)];
        [_waitForTalkBtn setTitle:@"待评价" forState:UIControlStateNormal];
        _waitForTalkBtn.titleLabel.font=[UIFont systemFontOfSize:12];
        _waitForTalkBtn.titleLabel.textAlignment=NSTextAlignmentCenter;
        [_waitForTalkBtn setTitleColor:COLOR(120, 120, 120, 1) forState:UIControlStateNormal];
        [_waitForTalkBtn setImage:[UIImage imageNamed:@"waitfortalk"] forState:UIControlStateNormal];
        
        _waitForByeByeBtn=[[fourthBtn alloc]initWithFrame:CGRectMake(btnWidth*3,(111-15)/2+16 ,btnWidth,(111-15)/2)];
        [_waitForByeByeBtn setTitle:@"退货/退款" forState:UIControlStateNormal];
        _waitForByeByeBtn.titleLabel.font=[UIFont systemFontOfSize:12];
        _waitForByeByeBtn.titleLabel.textAlignment=NSTextAlignmentCenter;
        [_waitForByeByeBtn setTitleColor:COLOR(120, 120, 120, 1) forState:UIControlStateNormal];
        [_waitForByeByeBtn setImage:[UIImage imageNamed:@"payBackMoney"] forState:UIControlStateNormal];
        
        [self.contentView addSubview:_waitForPayBtn];
        [self.contentView addSubview:_waitForGetBtn];
        [self.contentView addSubview:_waitForTalkBtn];
        [self.contentView addSubview:_waitForByeByeBtn];
        
        UIView *sep1=[[UIView alloc]initWithFrame:CGRectMake(0,15,kDeviceWidth,1)];
        sep1.backgroundColor=COLOR(200, 200, 200, 1);
        [self.contentView addSubview:sep1];
        
        UIView *sep2=[[UIView alloc]initWithFrame:CGRectMake(0,110,kDeviceWidth,1)];
        sep2.backgroundColor=COLOR(200, 200, 200, 1);
        [self.contentView addSubview:sep2];
        
    }
    return self;
}




- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
